// kX Driver / kX Driver Interface / kX Driver Effects Library
// Copyright (c) Eugene Gavrilov and Hanz Petrov, 2003-2004.
// All rights reserved

/*
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 */

// kX DSP Generated file
// 10kX microcode
// Patch name: 'APS Pitch Shift'

char *pitch_copyright="Copyright 1997 E-mu Systems/Creative Technology, Ltd.";
char *pitch_engine="EMU10K1_A0";
char *pitch_comment="APS Pitch Shifter, DLLed by Hanz Petrov, Mar 2003";
char *pitch_created="Fri Jul 13 12:59:02 2001 ";
char *pitch_guid="441a09a7-3d0b-11d6-a4c7-8fae6d701845";

char *pitch_name="APS Pitch";
int pitch_itramsize=2048,pitch_xtramsize=0;

dsp_register_info pitch_info[]={
	{ "in0",0x4000,0x7,0xffff,0x0 },
	{ "in1",0x4001,0x7,0xffff,0x0 },
	{ "out0",0x8000,0x8,0xffff,0x0 },
	{ "out1",0x8001,0x8,0xffff,0x0 },
	{ "wet8002",0x8002,0x4,0xffff,0x7fffffff },
	{ "sti8003",0x8003,0x1,0xffff,0x200 },
	{ "sti8004",0x8004,0x1,0xffff,0x800 },
	{ "sti8005",0x8005,0x1,0xffff,0x1ff800 },
	{ "dyn8006",0x8006,0x1,0xffff,0x0 },
	{ "dyn8007",0x8007,0x1,0xffff,0x0 },
	{ "dyn8008",0x8008,0x1,0xffff,0x0 },
	{ "dyn8009",0x8009,0x1,0xffff,0x0 },
	{ "sti800a",0x800a,0x1,0xffff,0x0 },
	{ "sti800b",0x800b,0x1,0xffff,0x7fffffff },
	{ "sti800c",0x800c,0x1,0xffff,0x80000000 },
	{ "tmp8019",0x800d,0x3,0xffff,0x0 },
	{ "tmp801a",0x800e,0x3,0xffff,0x0 },
	{ "tmp801b",0x800f,0x3,0xffff,0x0 },
	{ "tmp801c",0x8010,0x3,0xffff,0x0 },
	{ "itr800d",0x8011,0x49,0xffff,0x0 },
	{ "&itr800d",0x8012,0xb,0xffff,0x0 },
	{ "itr800f",0x8013,0x29,0xffff,0x400 },
	{ "&itr800f",0x8014,0xb,0xffff,0x400 },
	{ "itr8011",0x8015,0x29,0xffff,0x400 },
	{ "&itr8011",0x8016,0xb,0xffff,0x400 },
	{ "itr8013",0x8017,0x29,0xffff,0x401 },
	{ "&itr8013",0x8018,0xb,0xffff,0x401 },
	{ "itr8015",0x8019,0x29,0xffff,0x400 },
	{ "&itr8015",0x801a,0xb,0xffff,0x400 },
	{ "itr8017",0x801b,0x29,0xffff,0x401 },
	{ "&itr8017",0x801c,0xb,0xffff,0x401 },
};

dsp_code pitch_code[]={
	{ 0x0,0x800f,0x4000,0x2040,0x2040 },
	{ 0x0,0x8010,0x4001,0x2040,0x2040 },
	{ 0x0,0x2040,0x2040,0x800f,0x2054 },
	{ 0x0,0x8011,0x2056,0x8010,0x2054 },
	{ 0x3,0x800c,0x800c,0x8007,0x204e },
	{ 0xf,0x2040,0x2057,0x8003,0x2042 },
	{ 0x0,0x800a,0x2040,0x2040,0x2040 },
	{ 0x4,0x800b,0x2040,0x800b,0x204f },
	{ 0x0,0x800a,0x800a,0x8006,0x800b },
	{ 0x1,0x800b,0x800b,0x8006,0x800a },
	{ 0xe,0x800d,0x8015,0x8008,0x8017 },
	{ 0xe,0x8008,0x8019,0x8009,0x801b },
	{ 0x0,0x2040,0x2040,0x800d,0x800a },
	{ 0x0,0x800d,0x2056,0x8008,0x800b },
	{ 0xe,0x8000,0x800f,0x8002,0x800d },
	{ 0xe,0x8001,0x8010,0x8002,0x800d },
	{ 0x0,0x800d,0x8014,0x800c,0x8005 },
	{ 0x0,0x8016,0x800d,0x2040,0x2040 },
	{ 0x1,0x8018,0x8016,0x8004,0x204e },
	{ 0x5,0x8008,0x2040,0x800d,0x2055 },
	{ 0x2,0x800d,0x800c,0x204e,0x204e },
	{ 0x0,0x800d,0x8014,0x800d,0x8005 },
	{ 0x0,0x801a,0x800d,0x2040,0x2040 },
	{ 0x1,0x801c,0x801a,0x8004,0x204e },
	{ 0x5,0x8009,0x2040,0x800d,0x2055 },
};

#define _LEVEL 0x8002
#define _PITCH 0x8006
#define _PITCH2 0x8007
